import React from 'react';
import { notification } from 'antd';
import { injectIntl } from 'react-intl';
import {UUID} from '../../utils/tranStartType'
class SassNotification extends React.Component{
    constructor(props) {
        super(props);
        this.key=UUID()
    }
    componentWillMount(){
        const common = this.props.intl.messages.common;
        notification['info']({
            key:this.key,
            message: common.tip,
            description: common.friendlyTips,
            duration:3
        });
    }

    componentWillUnmount() {
        //全局只展示一次
        notification.close(this.key)
    }

    render(){
        return(null)
    }
}

export default injectIntl(SassNotification)